<extend name="Layout/ins_page" />
<block name="content">
	{:W('PageHeader/simple',array('name'=>'详情','search'=>'N'))}
	<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   class="well form-horizontal">
		<input type="hidden" id="ajax" name="ajax" value="1" />
		<input type="hidden" id="id" name="id" value="{$list['id']}" />
		<div class="form-group col-sm-6">
			<label class="col-sm-4 control-label">{$cr}产品：</label>
			<div class="col-sm-8">
				<input  class="form-control" type="text" id="product" name="product" value="{$list['product_name']}" check="require"  msg="请输入{$cr}产品" />
			</div>
		</div>
		<div class="form-group col-sm-6">
			<label class="col-sm-4 control-label">编号：</label>
			<div class="col-sm-8">
				<input  class="form-control" type="text" id="product" name="product" value="{$list['product_bh']}" check="require"  msg="请输入{$cr}产品" />
			</div>
		</div>
		
		<div class="form-group col-sm-6">
			<label class="col-sm-4 control-label">数量：</label>
			<div class="col-sm-8">
				<input class="form-control" id="number" type="text" name="number" value="{$list['number']}" check="require"  msg="请输入{$cr}产品数量"/>
			</div>
		</div>

		<div class="form-group col-sm-6">
			<label class="col-sm-4 control-label" for="opreate_name">经办人：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" id="opreate_name" name="opreate_name" value="{$list['opreate_name']}" check="require" msg="请输入经办人" value="{$opreate_name}">
			</div>
		</div>
		<div class="form-group col-sm-6">
			<label class="col-sm-4 control-label" for="name">摘要：</label>
			<div class="col-sm-8">
				<input class="form-control" type="text" id="remark" name="remark" value="{$list['remark']}" check="require" msg="请输入摘要" />
			</div>
		</div>
		<if condition="$list['product_img'] neq '' ">
			<div class="form-group col-sm-6">
				<label class="col-sm-4 control-label" for="name">图片：</label>
				<div class="col-sm-8">
					<img src="/Uploads/store/{$list['product_img']}" style="width:auto;height:180px"/>
				</div>
			</div>
		</if>
		<div class="form-group">
			<div class="form-actions col-sm-10 col-sm-offset-2">
				<if condition="$auth['write']">
					<!--  <input class="btn btn-sm btn-primary" type="button" value="保存" onclick="save();"> -->
			    </if>
				<a class="btn btn-sm btn-default" type="button" href="javascript:;" onClick="javascript:history.go(-1);" />返回</a>
			</div>
		</div>
	</form>
</block>
<block name="js">
	<script>
		function save() {
			sendForm("form_data", "{:U('editPost')}","{:U('index')}");
		}
	</script>
</block>